package lambda;

public class TestB {
    public static void main(String[] args) {
        B b1 = new B() {
            @Override
            public void show(String name) {
                System.out.println("name="+name);
            }
        };
        b1.show("张三");
        B b2 = name -> System.out.println("name="+name);
        b2.show("李四");
    }
}
